/**
 * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.skali.portlet.governmentSpending.service.model;

import java.io.Serializable;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * This class is used by
 * {@link com.skali.portlet.governmentSpending.service.service.http.SpendingTypeServiceSoap}.
 * </p>
 *
 * @author    Rizwan
 * @see       com.skali.portlet.governmentSpending.service.service.http.SpendingTypeServiceSoap
 * @generated
 */
public class SpendingTypeSoap implements Serializable {
	public static SpendingTypeSoap toSoapModel(SpendingType model) {
		SpendingTypeSoap soapModel = new SpendingTypeSoap();

		soapModel.setSpendingId(model.getSpendingId());
		soapModel.setSpendingName(model.getSpendingName());
		soapModel.setDescription(model.getDescription());
		soapModel.setModifiedDate(model.getModifiedDate());

		return soapModel;
	}

	public static SpendingTypeSoap[] toSoapModels(SpendingType[] models) {
		SpendingTypeSoap[] soapModels = new SpendingTypeSoap[models.length];

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModel(models[i]);
		}

		return soapModels;
	}

	public static SpendingTypeSoap[][] toSoapModels(SpendingType[][] models) {
		SpendingTypeSoap[][] soapModels = null;

		if (models.length > 0) {
			soapModels = new SpendingTypeSoap[models.length][models[0].length];
		}
		else {
			soapModels = new SpendingTypeSoap[0][0];
		}

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModels(models[i]);
		}

		return soapModels;
	}

	public static SpendingTypeSoap[] toSoapModels(List<SpendingType> models) {
		List<SpendingTypeSoap> soapModels = new ArrayList<SpendingTypeSoap>(models.size());

		for (SpendingType model : models) {
			soapModels.add(toSoapModel(model));
		}

		return soapModels.toArray(new SpendingTypeSoap[soapModels.size()]);
	}

	public SpendingTypeSoap() {
	}

	public long getPrimaryKey() {
		return _SpendingId;
	}

	public void setPrimaryKey(long pk) {
		setSpendingId(pk);
	}

	public long getSpendingId() {
		return _SpendingId;
	}

	public void setSpendingId(long SpendingId) {
		_SpendingId = SpendingId;
	}

	public String getSpendingName() {
		return _SpendingName;
	}

	public void setSpendingName(String SpendingName) {
		_SpendingName = SpendingName;
	}

	public String getDescription() {
		return _Description;
	}

	public void setDescription(String Description) {
		_Description = Description;
	}

	public Date getModifiedDate() {
		return _ModifiedDate;
	}

	public void setModifiedDate(Date ModifiedDate) {
		_ModifiedDate = ModifiedDate;
	}

	private long _SpendingId;
	private String _SpendingName;
	private String _Description;
	private Date _ModifiedDate;
}